<template>
  <div id="bottomLeft">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span style="color:#5cd9e8">
          <icon name="chart-bar"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2">公司收入统计</span>
        </div>
      </div>
      <div>
        <bottomLeftChart :listData="comps" />
      </div>
    </div>
  </div>
</template>

<script>
import bottomLeftChart from "@/components/echart/bottom/bottomLeftChart";
export default {
  data() {
    return {
      comps: []
    };
  },
  components: {
    bottomLeftChart
  },
  mounted() {
    this.getComp();
  },
  methods: {
    getComp() {
      this.axios.get("/report/finance").then(res => {
        this.comps = res.data.data;
        //  res.data.data.forEach(element=>{
        //    this.comps.push(element.company)
        //  })
      });
    }
  }
};
</script>

<style>
#bottomLeft {
  padding: 1.5rem 1rem;
  height: 520px;
  min-width: 300px;
  border-radius: 5px;
}
#bottomLeft .bg-color-black {
  height: 485px;
  border-radius: 10px;
}
#bottomLeft .text {
  color: #c3cbde;
}
#bottomLeft .chart-box {
  margin-top: 1rem;
  width: 170px;
  height: 170px;
}
#bottomLeft .chart-box .active-ring-name {
  padding-top: 10px;
}
</style>